import request from '@/utils/request'

//获取订单优惠申请表格数据
export function getList(data, url) {
  return request({
    url: url,
    method: 'post',
    data
  })
}

// 查询-产品规格
export function getSpecificationsList(data) {
  return request({
    url: '/discount/getspecificationsfordiscount',
    method: 'post',
    data
  })
}

// 查询-订单列表
export function getSchemeList(data) {
  return request({
    url: '/discount/getschemebyparam',
    method: 'post',
    data
  })
}

// 查询-具体订单列表
export function getSchemeInfoList(data) {
  return request({
    url: '/discount/getschemelistbyids',
    method: 'post',
    data
  })
}

// 新增
export function discountAdd(data) {
  return request({
    url: '/discount/addforlist',
    method: 'post',
    data
  })
}
// 查询-单条
export function discountInfo(data) {
  return request({
    url: '/discount/info',
    method: 'post',
    data
  })
}

// 编辑
export function discountedit(data) {
  return request({
    url: '/discount/mod',
    method: 'post',
    data
  })
}

// 删除
export function discountDel(data) {
  return request({
    url: '/discount/del',
    method: 'post',
    data
  })
}

// 日志og
export function discountLog(data) {
  return request({
    url: '/discount/log/list',
    method: 'post',
    data
  })
}

// 复核
export function discountCheck(data) {
  return request({
    url: '/discount/modforcheck',
    method: 'post',
    data
  })
}

// 驳回/中止
export function discountCancel(data) {
  return request({
    url: '/discount/cancel',
    method: 'post',
    data
  })
}

// 查询-合同编号
export function searchContractNo(data) {
  return request({
    url: '/discount/getmatchcontractno',
    method: 'post',
    data
  })
}

// 查询-客户名称
export function searchCustomerName(data) {
  return request({
    url: '/discount/getmatchcustomer',
    method: 'post',
    data
  })
}

// 查询-下场地
export function searchDeliveryAddress(data) {
  return request({
    url: '/discount/getmatchlocation',
    method: 'post',
    data
  })
}
